import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCartStore = defineStore('cart', () => {
  const cartList = ref([])

  // const doubleCount = computed(() => count.value * 2)

  function setCartList(list) {
    cartList.value=list
  }

  return { cartList,  setCartList }
})
